﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0055)https://moodle.isep.ipp.pt/mod/forum/discuss.php?d=2289 -->
<HTML lang=pt dir=ltr xml:lang="pt" 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>10319: Ligaçao ODBC com WIN-PROLOG</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/styles.css" 
type=text/css rel=stylesheet><LINK 
href="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/styles.css" 
type=text/css rel=stylesheet><LINK 
href="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/styles(1).css" 
type=text/css rel=stylesheet><!--[if IE 7]><LINK 
href="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/styles_ie7.css" 
type=text/css rel=stylesheet><![endif]--><!--[if IE 6]>
    <link rel="stylesheet" type="text/css" href="https://moodle.isep.ipp.pt/theme/standard/styles_ie6.css" />
<![endif]-->
<META content="moodle, 10319: Ligaçao ODBC com WIN-PROLOG " name=keywords><LINK 
href="https://moodle.isep.ipp.pt/theme/ISEP/favicon.ico" rel="shortcut icon">
<SCRIPT 
src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/spellChecker.js" 
type=text/javascript></SCRIPT>
<!--<style type="text/css">/*<![CDATA[*/ body{behavior:url(https://moodle.isep.ipp.pt/lib/csshover.htc);} /*]]>*/</style>-->
<SCRIPT 
src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/javascript-static.js" 
type=text/javascript></SCRIPT>

<SCRIPT 
src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/javascript-mod.php" 
type=text/javascript></SCRIPT>

<SCRIPT src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/overlib.js" 
type=text/javascript></SCRIPT>

<SCRIPT 
src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/overlib_cssstyle.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/cookies.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/ufo.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/dropdown.js" 
type=text/javascript></SCRIPT>

<SCRIPT defer type=text/javascript>
//<![CDATA[
setTimeout('fix_column_widths()', 20);
//]]>
</SCRIPT>

<SCRIPT type=text/javascript>
//<![CDATA[
function openpopup(url,name,options,fullscreen) {
  fullurl = "https://moodle.isep.ipp.pt" + url;
  windowobj = window.open(fullurl,name,options);
  if (fullscreen) {
     windowobj.moveTo(0,0);
     windowobj.resizeTo(screen.availWidth,screen.availHeight);
  }
  windowobj.focus();
  return false;
}

function uncheckall() {
  void(d=document);
  void(el=d.getElementsByTagName('INPUT'));
  for(i=0;i<el.length;i++) {
    void(el[i].checked=0);
  }
}

function checkall() {
  void(d=document);
  void(el=d.getElementsByTagName('INPUT'));
  for(i=0;i<el.length;i++) {
    void(el[i].checked=1);
  }
}

function inserttext(text) {
  text = ' ' + text + ' ';
  if ( opener.document.forms['theform'].message.createTextRange && opener.document.forms['theform'].message.caretPos) {
    var caretPos = opener.document.forms['theform'].message.caretPos;
    caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
  } else {
    opener.document.forms['theform'].message.value  += text;
  }
  opener.document.forms['theform'].message.focus();
}

function getElementsByClassName(oElm, strTagName, oClassNames){
	var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
	var arrReturnElements = new Array();
	var arrRegExpClassNames = new Array();
	if(typeof oClassNames == "object"){
		for(var i=0; i<oClassNames.length; i++){
			arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames[i].replace(/\-/g, "\\-") + "(\\s|$)"));
		}
	}
	else{
		arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames.replace(/\-/g, "\\-") + "(\\s|$)"));
	}
	var oElement;
	var bMatchesAll;
	for(var j=0; j<arrElements.length; j++){
		oElement = arrElements[j];
		bMatchesAll = true;
		for(var k=0; k<arrRegExpClassNames.length; k++){
			if(!arrRegExpClassNames[k].test(oElement.className)){
				bMatchesAll = false;
				break;
			}
		}
		if(bMatchesAll){
			arrReturnElements.push(oElement);
		}
	}
	return (arrReturnElements)
}
//]]>
</SCRIPT>

<SCRIPT language=javascript>
     function doSel(obj)
 		{
    	for (i = 1; i < obj.length; i++)
        if (obj[i].selected == true)
           eval(obj[i].value);
		}

		function CreateBookmarkLink(url, title) {
			if( window.external ) { // IE Favorite
				window.external.AddFavorite( url, title);
			}else{
				alert("Prima OK\nSeguidamente pressione Ctrl + D para adicionar aos favoritos");
			}
		}
		
		</SCRIPT>

<META content="MSHTML 6.00.6001.18148" name=GENERATOR></HEAD>
<BODY class="mod-forum course-230501 dir-ltr lang-pt_utf8" id=mod-forum-discuss>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <TBODY>
  <TR>
    <TD width="100%" 
    background=10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/bkgnd_topcenter.jpg 
    bgColor=#ffffff>
      <DIV id=page>
      <TABLE class=headerhome cellSpacing=0 cellPadding=0 width="100%" 
        border=0><TBODY>
        <TR>
          <TD width=400><A href="https://moodle.isep.ipp.pt/"><IMG 
            src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/logoleft_small.jpg" 
            border=0></A></TD>
          <TD vAlign=top align=right 
          background=10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/logoright_small.jpg>
            <DIV class=navbar>
            <DIV class=navbutton>
            <DIV class=forumsearch>
            <FORM style="DISPLAY: inline" 
            action=https://moodle.isep.ipp.pt/mod/forum/search.php>
            <FIELDSET class=invisiblefieldset><SPAN class=helplink><A 
            class=ficheiros title="Ajuda com Procurar (Nova jabela)" 
            onclick="this.target='popup'; return openpopup('/help.php?module=moodle&amp;file=search.html&amp;forcelang=', 'popup', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400', 0);" 
            href="https://moodle.isep.ipp.pt/help.php?module=moodle&amp;file=search.html&amp;forcelang="><IMG 
            class=iconhelp alt="Ajuda com Procurar (Nova jabela)" 
            src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/help.gif"></A></SPAN><INPUT 
            alt=search size=18 name=search><INPUT type=submit value="Procurar nos fóruns"><INPUT 
            type=hidden value=230501 
            name=id></FIELDSET></FORM></DIV></DIV></DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          </TD></TR>
        <TR>
          <TD vAlign=center noWrap width="100%" 
          background=10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/header_sub_bg.jpg 
          colSpan=2>
            <DIV class="navbar clearfix">
            <DIV class=breadcrumb>
            <H2 class="accesshide ">Você está aqui</H2>
            <UL>
              <LI class=first><A onclick="this.target='_top'" 
              href="https://moodle.isep.ipp.pt/">Moodle-ISEP</A> 
              <LI class=first><SPAN class="accesshide ">/&nbsp;</SPAN><SPAN 
              class="arrow sep">►</SPAN> <A onclick="this.target='_top'" 
              href="https://moodle.isep.ipp.pt/course/category.php?id=357">2008 
              / 2009</A> 
              <LI class=first><SPAN class="accesshide ">/&nbsp;</SPAN><SPAN 
              class="arrow sep">►</SPAN> <A onclick="this.target='_top'" 
              href="https://moodle.isep.ipp.pt/course/category.php?id=361">Engenharia 
              Informática</A> 
              <LI class=first><SPAN class="accesshide ">/&nbsp;</SPAN><SPAN 
              class="arrow sep">►</SPAN> <A onclick="this.target='_top'" 
              href="https://moodle.isep.ipp.pt/course/category.php?id=381">3 Ano 
              - Licenciatura</A> 
              <LI class=first><SPAN class="accesshide ">/&nbsp;</SPAN><SPAN 
              class="arrow sep">►</SPAN> <A onclick="this.target='_top'" 
              href="https://moodle.isep.ipp.pt/course/category.php?id=382">1 
              Semestre</A> 
              <LI class=first><SPAN class="accesshide ">/&nbsp;</SPAN><SPAN 
              class="arrow sep">►</SPAN> <A onclick="this.target='_top'" 
              href="https://moodle.isep.ipp.pt/course/view.php?id=230501">LAPR5</A> 
              </LI></UL></DIV>
            <DIV class=navigation>
            <UL>
              <LI>
              <FORM onclick="this.target='_top';" 
              action=https://moodle.isep.ipp.pt/mod/forum/view.php>
              <FIELDSET class=invisiblefieldset><INPUT type=hidden value=24253 
              name=id><BUTTON title="Actividade anterior" type=submit><SPAN 
              class="arrow ">◄</SPAN><SPAN class="accesshide ">&nbsp;Actividade 
              anterior</SPAN></BUTTON></FIELDSET></FORM>
              <LI>
              <FORM class=popupform id=navmenupopup 
              action=https://moodle.isep.ipp.pt/course/jumpto.php method=get>
              <DIV><SELECT id=navmenupopup_jump 
              onfocus="initSelect('navmenupopup',self)" name=jump> <OPTION 
                style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/forum/icon.gif)" 
                value=https://moodle.isep.ipp.pt/mod/forum/view.php?id=18546>Notícias</OPTION> 
                <OPTION 
                style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=21883>Ficha 
                de disciplina</OPTION> <OPTION 
                style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=24040>Regras 
                de funcionamento</OPTION> <OPTION 
                style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/assignment/icon.gif)" 
                value=https://moodle.isep.ipp.pt/mod/assignment/view.php?id=24530>Declaração 
                Técnica Preliminar</OPTION> <OPTION 
                style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/assignment/icon.gif)" 
                value=https://moodle.isep.ipp.pt/mod/assignment/view.php?id=24531>Proposta 
                Final</OPTION> <OPTION 
                style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=24844>Grupos 
                (v04)</OPTION> <OPTGROUP label="Tópico 1"> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=23351>Observações 
                  sobre o funcionamento da componente ...</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=23518>WBS 
                  standard draft</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=23519>Desenvolver 
                  a WBS (regras humoristicas)</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=23520>Exemplo 
                  (longo) de WBS</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=23522>exemplo 
                  (curto) WBS</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=23523>Exemplo 
                  Declaração Preliminar de Âmbito</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=23524>Termo 
                  de Abertura - exemplo</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=23525>Formulário 
                  aulas - registo de assuntos</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=24749>Template 
                  MSProject</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/assignment/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/assignment/view.php?id=24663>Assuntos 
                  para 1ª sessão - 2008/11/05</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/assignment/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/assignment/view.php?id=24665>Assuntos 
                  para 2ª sessão - 2008/12/03</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/assignment/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/assignment/view.php?id=24667>Assuntos 
                  para 3ª sessão - 2008/12/15</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/assignment/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/assignment/view.php?id=24668>Assuntos 
                  para 4ª sessão - 2009/01/05</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/assignment/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/assignment/view.php?id=24669>Assuntos 
                  para 5ª sessão - 2009/01/12</OPTION> </OPTGROUP> <OPTGROUP 
                label="Tópico 2"> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/resource/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/resource/view.php?id=24251>Request 
                  For Proposals (RFP)</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/forum/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/forum/view.php?id=24252>Projecto 
                  Integrador</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/forum/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/forum/view.php?id=24811>Gestão 
                  do projecto</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/forum/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/forum/view.php?id=24253>EasyTourismWeb, 
                  EasyTourismAdmin, EasyTourismServices</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/forum/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/forum/view.php?id=24254 
                  selected>Ir para...</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/forum/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/forum/view.php?id=24808>EasyTourism3D</OPTION> 
                  <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/forum/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/forum/view.php?id=24810>Infra-estrutura 
                  (HW SW) &amp; monitorização (n...</OPTION> <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/forum/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/forum/view.php?id=24807>EasyTourismMobile</OPTION> 
                  <OPTION 
                  style="BACKGROUND-IMAGE: url(https://moodle.isep.ipp.pt/theme/ISEP/pix/mod/forum/icon.gif)" 
                  value=https://moodle.isep.ipp.pt/mod/forum/view.php?id=24809>EasyTourismMapMaker</OPTION> 
                </OPTGROUP></SELECT><INPUT type=hidden value=hzThmyZGlg 
              name=sesskey>
              <DIV id=noscriptnavmenupopup style="DISPLAY: inline"><INPUT type=submit value=Ir></DIV>
              <SCRIPT type=text/javascript>
//<![CDATA[
document.getElementById("noscriptnavmenupopup").style.display = "none";
//]]>
</SCRIPT>
              </DIV></FORM>
              <LI>
              <FORM onclick="this.target='_top';" 
              action=https://moodle.isep.ipp.pt/mod/forum/view.php>
              <FIELDSET class=invisiblefieldset><INPUT type=hidden value=24808 
              name=id><BUTTON title="Próxima actividade" type=submit><SPAN 
              class="accesshide ">Próxima actividade&nbsp;</SPAN><SPAN 
              class="arrow ">►</SPAN></BUTTON></FIELDSET></FORM></LI></UL></DIV></DIV></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<DIV id=page>
<TABLE borderColor=#bbbbbb cellPadding=5 width="100%" align=center 
bgColor=#ffffff border=1>
  <TBODY>
  <TR>
    <TD>
      <DIV class=clearer></DIV><!-- END OF HEADER -->
      <DIV id=content>
      <TABLE class=discussioncontrols width="100%">
        <TBODY>
        <TR>
          <TD></TD>
          <TD>
            <FORM class=popupform id=mode 
            action=https://moodle.isep.ipp.pt/course/jumpto.php method=get>
            <DIV><SELECT id=mode_jump onfocus="initSelect('mode',self)" 
            name=jump> <OPTION value=discuss.php?d=2289&amp;mode=1>Lista de 
              respostas a começar pela mais antiga</OPTION> <OPTION 
              value=discuss.php?d=2289&amp;mode=-1>Lista de respostas a começar 
              pela mais recente</OPTION> <OPTION 
              value=discuss.php?d=2289&amp;mode=2>Mostrar respostas em forma 
              contraída</OPTION> <OPTION value=discuss.php?d=2289&amp;mode=3 
              selected>Mostrar respostas em forma 
            hierárquica</OPTION></SELECT><INPUT type=hidden value=hzThmyZGlg 
            name=sesskey>
            <DIV id=noscriptmode style="DISPLAY: inline"><INPUT type=submit value=Ir></DIV>
            <SCRIPT type=text/javascript>
//<![CDATA[
document.getElementById("noscriptmode").style.display = "none";
//]]>
</SCRIPT>
            </DIV></FORM></TD>
          <TD></TD></TR></TBODY></TABLE><A id=p4000></A>
      <TABLE class=forumpost cellSpacing=0>
        <TBODY>
        <TR class=header>
          <TD class="picture left"><A 
            href="https://moodle.isep.ipp.pt/user/view.php?id=2407&amp;course=230501"><IMG 
            class=userpicture height=35 alt="imagem de HUGO 1060717" 
            src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/f2.jpg" 
            width=35></A></TD>
          <TD class="topic starter">
            <DIV class=subject>Ligaçao ODBC com WIN-PROLOG</DIV>
            <DIV class=author>por <A 
            href="https://moodle.isep.ipp.pt/user/view.php?id=2407&amp;course=230501">HUGO 
            1060717</A> - Quarta, 19 Novembro 2008, 18:34</DIV></TD></TR>
        <TR>
          <TD class="left side">&nbsp;</TD>
          <TD class=content>Aqui vai um pequeno tutorial como fazer a ligação 
            a uma base de dados k construi após várias horas de 
            pesquisas:<BR><BR>1º Para quem kiser fazer ligação MySQL, Ir 
            "Iniciar"-&gt;"Painel Controlo"-&gt;"Ferramentas 
            Administrativas"-&gt;"Origem Dados (ODBC)"<BR><IMG hspace=0 
            src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/1168019795.gif" 
            align=baseline border=0><BR><BR>2º Clicar em "Adicionar" , procurar 
            o driver ODBC correspondente, neste caso MySQL ODBC Driver e 
            OK<BR><IMG hspace=0 
            src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/1158020277.gif" 
            align=baseline border=0><BR><BR>3º Configurar o ODBC do MySQL para a 
            base de dados correspondente.. Neste caso, temos uma base de dados 
            chamada: "EasyTourism".<BR>Server: localhost<BR>User: 
            root<BR>Password: ******<BR>Database:EasyTourism<BR>e podemos dar um 
            nome qualquer em DataSourceName (ex: mysqlEasyTourism)<BR><IMG 
            hspace=0 
            src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/1327946862.gif" 
            align=baseline border=0><BR><BR>Concluida esta parte abrimos o 
            WIN-PROLOG e adicionamos num ficheiro .pl<BR><BR>initial_setup 
            :-<BR>ensure_loaded( system(dblink) ),<BR>ensure_loaded( 
            system(dm_api) ),<BR>ensure_loaded( library('45_sttbx') 
            ),<BR>dynamic( cond_exp_col_name/2 ).<BR><BR>:- 
            initial_setup.<BR><BR>Finalmente agr podemos executar estas linhas 
            no nosso prolog: (por ex:<BR>dm_api_connect( `mysqlEasyTourism`, 
            `ACCESS` ),<BR>db_sql_select( `SELECT nickname FROM 
            comentarios`,[TargetCount]).<BR><BR>Vejam o resultado <IMG height=15 
            alt=sorriso 
            src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/smiley.gif" 
            width=15><BR>Espero ter ajudado, Boa Sorte!!!<BR><BR>
            <DIV class=commands><A 
            href="https://moodle.isep.ipp.pt/mod/forum/post.php?reply=4000">Responder</A></DIV></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE><!-- START OF FOOTER -->
<TABLE cellSpacing=0 cellPadding=5 width="100%" align=center 
background=10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/bkgnd_bottomcenter.jpg 
border=0>
  <TBODY>
  <TR>
    <TD vAlign=top align=left width="70%" height=44><IMG height=15 
      src="10319%20Ligaçao%20ODBC%20com%20WIN-PROLOG_ficheiros/spacer.gif" 
      width=1><BR>
      <DIV class=noresize>
      <DIV class=logininfo>Nome de utilizador: <A 
      href="https://moodle.isep.ipp.pt/user/view.php?id=2770&amp;course=230501">Ruben 
      1910623</A>. (<A 
      href="https://moodle.isep.ipp.pt/login/logout.php?sesskey=hzThmyZGlg">Sair</A>)</DIV></DIV></TD>
    <TD align=right><A 
      onclick='{open("https://moodle.isep.ipp.pt/helpdesk/helpdesk.php","","width=570,height=350,toolbar=no,scrollbars=no,resizable=no,status=no,directories=no,menubar=no,location=no,top=200,left=200");}' 
      href="https://moodle.isep.ipp.pt/mod/forum/discuss.php?d=2289#">Helpdesk</A><BR></TD></TR></TBODY></TABLE></TD></TR></TABLE>
<CENTER></CENTER></DIV></BODY></HTML>
